package utils

import "fmt"

func Limit(page, pageSize int64) string {
	if page < 1 {
		page = 1
	}
	if pageSize <= 0 {
		pageSize = 10
	}
	startNum := (page - 1) * pageSize
	return fmt.Sprintf(" limit %s , %s", Int64ToString(startNum), Int64ToString(pageSize))
}
